package com.shu.logsearch.jsch.service;


import com.shu.logsearch.common.base.BaseService;
import com.shu.logsearch.jsch.dao.IRemoteServerConfigMapper;
import com.shu.logsearch.jsch.model.RemoteServerConfig;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Tree Cai
 * @generator
 * @date 2019/07/10
 */
@Service
public class RemoteServerConfigService extends BaseService<RemoteServerConfig, IRemoteServerConfigMapper> {

    /**
     * 获取某个用户配置的所有远程服务器
     * @param userId
     * @return
     */
    public List<RemoteServerConfig> getRemoteServerConfigListByUserId(String userId) {
        return list(query().getWrapper().eq(true,"userId", userId));
    }
}
